import React, {useContext} from 'react'
import { TextContext } from '../utils/Context'

export default function ComponentA() {
    const {changeTitle} = useContext(TextContext)
    return (
        <div>
                <button onClick={() => changeTitle('上海')} >修改</button>
        </div>
    )
}

